from django.shortcuts import render

# Create your views here.
from django.http import HttpResponse
import json
from common import idCardRecognition
from medical_app.common import tencentSTS


# 向腾讯云sts请求返回临时密钥信息
def getSTSResult(request):
    stsResult = tencentSTS.getSTSResult()
    return HttpResponse(stsResult)


def testS3(request):

    res = idCardRecognition.getIdCardInfo(
        "0392498f-5ff5-4984-8148-2641a95d8d95", "images/", "FRONT"
    )
    # return render(request, "medical_app/testS3/index.html")
    return HttpResponse(res)
